import soundfile
import librosa


def main():
	filename = "../resources/yqx.wav"
	data, sample_rate = soundfile.read(filename)
	data = data[:,0]
	data_out = librosa.resample(data.T, sample_rate, sample_rate//10, scale=True)
	print(data_out.shape)
	soundfile.write("../resources/yqx_re_harf.wav", data_out, sample_rate//10)


if __name__ == '__main__':
	main()